<!DOCTYPE html>
<html lang="en">
<head>
    <{include file="header.html"}>
    <title>题库管理-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
</head>
<body>
<div class="wrap">
    <!--star left-->
    <div class="column">
        <{include file="left_menu.html"}>
    </div>
    <div id="ContMianBox">
        <!--star子栏目-->
        <div class="sub-colum">
            <div class="tit">问答</div>
            <ul>
                <li><a href="/question/my">我的提问</a></li>
                <li class="curr"><a href="/question/my_answer">我的回答</a></li>
            </ul>
        </div>
        <!--end子栏目-->
        <!--end left-->
        <div class="container narrow">
            <!--star conter-->
            <div class="cetContent">
                <div class="tit p-lr20">
                    <span>题库管理</span>
                </div>
                <!--star内容区域-->
                <div class="mainScroll">
                    <div class="mainContainer line-all">
                        <!--star tabMainCont-->
                        <div class="tabMainCont">
                            <!--star会员管理-->
                            <fieldset class="layui-elem-field">
                                <legend>筛选</legend>
                                <div class="layui-field-box">
                                    <form class="layui-form layui-form-pane1" method="post" action="/tiku/index">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <input type="text" class="layui-input" style="width:200px;" placeholder="题干"  name="subject_text" value="<{if isset($conditions['subject_text']) AND $conditions['subject_text'] != 0}><{$conditions['subject_text']}><{/if}>" />
                                            </div>

                                            <div class="layui-inline">
                                                <button type="submit" class="layui-btn">搜索</button>
                                                <a class="layui-btn" href="javascript:;" onClick="openWin();"><i class="layui-icon"></i> 我要提问</a>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </fieldset>
                                <form class="layui-form layui-form-pane1" method="post" delete_action="/topic/delete">
                                    <table class="layui-table" lay-even lay-skin="row">
                                        <thead>
                                             <tr>
                                                <th>序号</th>
                                                <th>标题</th>
                                                <th>回答数</th>
                                                <th>浏览次数</th>
                                                <th>提问时间</th>
                                            </tr>
                                        </thead>
                                        <{foreach from=$question_list item=q_item}>
                                        <tr>
                                                <td class="tal"><{$q_item.id}></td>
                                                <td class="tal not_lb"><a href="/tiku/edit_topic/<{$q_item.id}>"><{$q_item.title}></a></td>
                                                <td class="tal not_lb"><{$q_item.answer_num}></td>
                                                <td class="tal not_lb"><{$q_item.click_num}>次浏览</td>
                                                <td class="tal not_lb"><{$q_item['add_time']|date_format:'%Y-%m-%d %H:%M:%S'}></td>
                                            </tr>
                                        <{/foreach}>

                                    </table>
                                </form>

                            <div class="pages p-tb20" style="text-align:right;">
                                <{$pagination}>
                            </div>

                        </div>
                        <!--star会员管理-->
                    </div>
                        <!--end tabMainCont-->
                </div>

            </div>
        </div>

    </div>
    <{include file="footer.html"}>
    <script>
        function openWin(){
            layer.open({
                type: 2,
                title: '发布提问',
                shadeClose: true,
                shade: 0.8,
                area: ['800px', '770px'],
                maxmin: true,
                content: '/question/create' //iframe的url
            }); 
        }
    </script>
</div>
</body>
</html>